package com.thm.tfast.modules.sys.model.dto.resource;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @author THM
 * @date 2022/10/29
 * @desc 资源类型新增dto
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ResourceCategoryInsertDto {
    @ApiModelProperty(value = "资源类型名称", required = true)
    @NotEmpty(message = "资源类型名称不能为空")
    @Size(max = 32, message = "资源类型名称不能超过32位")
    private String name;

    @ApiModelProperty(value = "排序")
    private Integer sort;
}
